<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2024/4/24
  Time: 20:23
  To change this template use File | Settings | File Templates.
--%>
<%--<%@ page contentType="text/html;charset=UTF-8" language="java" %>--%>
<%--<html>--%>
<%--<head>--%>
<%--    <title>Title</title>--%>
<%--</head>--%>
<%--<body>--%>

<%--</body>--%>
<%--</html>--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%><html>
<head>
    <base href="<%=basePath%>">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>用户登录</title>
    <script>
        //判断是登录账号和密码是否为空
        function check() {
            var name = $("#name").val();
            var password = $("#password").val();
            if (name == "" || password == "") {
                alert("账号和密码不能为空! ");
                return false;
            }
        }
    </script>
    <link href="css/login.css" type="text/css" rel="stylesheet"/>
</head>
<body>
<h1>超市管理系统</h1>
<div class="box">
    <!-- 顶部盒子 -->
    <div></div>
    <!-- content盒子 -->
    <div>
        <form action="loginsuccess.jsp" method="post">
            <div id="inputarea">
                <div>
                    账号：<input type="text" name="name"  class="input" placeholder="请输入账号" ></input>
                </div>
                <div>
                    密码：<input type="password" name="password" placeholder="请输入密码"
                                class="input" id="password_input"></input>
                </div>
            </div>
            <div>
                <input type="submit" value="登录" class="loginButton"></input>
            </div>
        </form>
        <%--			<form action="registerServlet" method="post">--%>
        <div>
            <a href="register.jsp"><input type="submit" value="注册" class="loginButton" style="margin-top: 10px"></input></a>
        </div>
        <%--			</form>--%>
    </div>
</div>
</body>
</html>
